package com.sasis.model;
// Generated 2007-5-22 14:23:19 by Hibernate Tools 3.1.0.beta4

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="FLIGHT_ADJUST_HOTEL"
 *     
 */

public class FlightAdjustHotel extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer flightInfoId;
    private Integer hotelId;
    private Integer rooms;
    private BigDecimal price;
    private Integer operator;
    private Timestamp operatDate;
    private String name;
    private String address;
    private String phone;
    private Integer total;
    private String memo;
    // Constructors

    public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	/** default constructor */
    public FlightAdjustHotel() {
    }

	/** minimal constructor */
    public FlightAdjustHotel(Integer flightInfoId) {
        this.flightInfoId = flightInfoId;
    }
    
    /** full constructor */
    public FlightAdjustHotel(Integer flightInfoId, Integer hotelId, Integer rooms, BigDecimal price, Integer operator, Timestamp operatDate) {
        this.flightInfoId = flightInfoId;
        this.hotelId = hotelId;
        this.rooms = rooms;
        this.price = price;
        this.operator = operator;
        this.operatDate = operatDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLIGHT_INFO_ID"
     *             length="22"
     *             not-null="true"
     *         
     */

    public Integer getFlightInfoId() {
        return this.flightInfoId;
    }
    
    public void setFlightInfoId(Integer flightInfoId) {
        this.flightInfoId = flightInfoId;
    }
    /**       
     *      *            @hibernate.property
     *             column="HOTEL_ID"
     *             length="22"
     *         
     */

    public Integer getHotelId() {
        return this.hotelId;
    }
    
    public void setHotelId(Integer hotelId) {
        this.hotelId = hotelId;
    }
    /**       
     *      *            @hibernate.property
     *             column="ROOMS"
     *             length="3"
     *         
     */

    public Integer getRooms() {
        return this.rooms;
    }
    
    public void setRooms(Integer rooms) {
        this.rooms = rooms;
    }
    /**       
     *      *            @hibernate.property
     *             column="PRICE"
     *             length="5"
     *         
     */

    public BigDecimal getPrice() {
        return this.price;
    }
    
    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERATOR"
     *             length="22"
     *         
     */

    public Integer getOperator() {
        return this.operator;
    }
    
    public void setOperator(Integer operator) {
        this.operator = operator;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERAT_DATE"
     *             length="7"
     *         
     */

    public Timestamp getOperatDate() {
        return this.operatDate;
    }
    
    public void setOperatDate(Timestamp operatDate) {
        this.operatDate = operatDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("flightInfoId").append("='").append(getFlightInfoId()).append("' ");			
      buffer.append("hotelId").append("='").append(getHotelId()).append("' ");			
      buffer.append("rooms").append("='").append(getRooms()).append("' ");			
      buffer.append("price").append("='").append(getPrice()).append("' ");			
      buffer.append("operator").append("='").append(getOperator()).append("' ");			
      buffer.append("operatDate").append("='").append(getOperatDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof FlightAdjustHotel) ) return false;
		 FlightAdjustHotel castOther = ( FlightAdjustHotel ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getFlightInfoId()==castOther.getFlightInfoId()) || ( this.getFlightInfoId()!=null && castOther.getFlightInfoId()!=null && this.getFlightInfoId().equals(castOther.getFlightInfoId()) ) )
 && ( (this.getHotelId()==castOther.getHotelId()) || ( this.getHotelId()!=null && castOther.getHotelId()!=null && this.getHotelId().equals(castOther.getHotelId()) ) )
 && ( (this.getRooms()==castOther.getRooms()) || ( this.getRooms()!=null && castOther.getRooms()!=null && this.getRooms().equals(castOther.getRooms()) ) )
 && ( (this.getPrice()==castOther.getPrice()) || ( this.getPrice()!=null && castOther.getPrice()!=null && this.getPrice().equals(castOther.getPrice()) ) )
 && ( (this.getOperator()==castOther.getOperator()) || ( this.getOperator()!=null && castOther.getOperator()!=null && this.getOperator().equals(castOther.getOperator()) ) )
 && ( (this.getOperatDate()==castOther.getOperatDate()) || ( this.getOperatDate()!=null && castOther.getOperatDate()!=null && this.getOperatDate().equals(castOther.getOperatDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getFlightInfoId() == null ? 0 : this.getFlightInfoId().hashCode() );
         result = 37 * result + ( getHotelId() == null ? 0 : this.getHotelId().hashCode() );
         result = 37 * result + ( getRooms() == null ? 0 : this.getRooms().hashCode() );
         result = 37 * result + ( getPrice() == null ? 0 : this.getPrice().hashCode() );
         result = 37 * result + ( getOperator() == null ? 0 : this.getOperator().hashCode() );
         result = 37 * result + ( getOperatDate() == null ? 0 : this.getOperatDate().hashCode() );
         return result;
   }

public Integer getTotal() {
	return total;
}

public void setTotal(Integer total) {
	this.total = total;
}   





}
